﻿using System.Collections.Generic;

namespace Core.Toolkit.Core
{

    public interface IPageModel<TEntity>
    {
        List<TEntity> PageData { get; set; }
        int RowCount { get; set; }
    }

    /// <summary>
    /// 分页Model
    /// </summary>
    /// <typeparam name="TPageData"></typeparam>
    public class PageModel<TEntity> : IPageModel<TEntity>
    {
        public List<TEntity> PageData { get; set; }
        public int RowCount { get; set; }
    }




    /// <summary>
    /// 分页Model
    /// </summary>
    public class PageModelObj
    {
        public object PageData { get; set; }
        public int RowCount { get; set; }
    }
}
